<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加企业</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__CSS__/common/layui.form.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">
</head>
<body>
    <!--编辑页-->
   <div class="layui-container">
        <form class="layui-form layui-clear" action="{:url('basic/enterprise/add')}" method="post" id="unitForm">
            <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">企业全称&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" data-unit="">
                        <input class="layui-input" name="fullName" data-set="fullName" type="text" placeholder="请输入企业全称" autocomplete="off" lay-verify="required" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">企业简称&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">    
                        <input class="layui-input" name="shortname" data-set="shortname" type="text" placeholder="请输入企业简称" autocomplete="off" lay-verify="required"/>
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">编号&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="enterpriseCode" data-set="enterpriseCode" type="text" placeholder="请输入编号" lay-verify="enterpriseCode" />
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">工业园<small>片区</small>&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline" id="groupView">
                        <select name="position-area" data-set="postion-area">
                            <option></option>
                            {volist name="positionType" id="item"}
                              <optgroup label="{$item.subsystemName}">
                              	{volist name="item.area" id="value"}
                              		<option value="{$item.subsystemNo}-{$value.subsystemNo}">{$value.subsystemName}</option>
                              	{/volist}
                              </optgroup>
                            {/volist}
                         </select>
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">入园时间&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="enterDate" data-set="enterDate" type="text" id="enterDate" placeholder="入园时间" autocomplete="off" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">状态&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <select name="productionStatus" data-set="productionStatus">
                            <option value=""></option>
                            {volist name="productionStatus" id="item"}
                            	<option value="{$key}">{$item}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
         	</div>
            <div class="layui-form-item">
             	<div class="layui-inline col-3">
                    <label class="layui-form-label">企业类型&nbsp;<i class="layui-icon arrow">&#xe642;</i></label>
                    <div class="layui-input-inline">
                        <select name="typeId" data-set="typeId">
                         	<option></option>
                         	{volist  name="enterpriseType" id="item"}
                         		<option value="{$item.id}">{$item.subsystemName}</option>
                         	{/volist}
                        </select>
                    </div>
              	</div>
                <div class="layui-inline col-3">
                   <label class="layui-form-label">企业坐标<i class="layui-icon arrow">&#xe642;</i></label>
                   <div class="layui-input-inline">
                       <input class="layui-input layui-position" name="latitudeLongitude" data-set="latitudeLongitude" type="text" readonly placeholder="请选择经纬度" autocomplete="off"  />
                       <a  href="javascript:;" id="building" class="layui-btn layui-btn-small btn-green" data-url="{:url('basic/enterprise/setBuilding')}"><i class="fa fa-map-marker"></i></a>
                   </div>
                   
                </div>
	        </div>
            <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">年产量&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="outPutAmount" data-set="outPutAmount" type="number" placeholder="请输入产量" lay-verify="outPutAmount" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">总投资<small>(万)</small><i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="totalInvestment" data-set="totalInvestment" type="number" placeholder="请输入投资金额"  />
                    </div>
               	</div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">年产值<small>(万)</small><i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="outPutValue" data-set="outPutValue" type="number" placeholder="请输入产值"  />
                    </div>
                </div>
            </div>
            
            <div class="layui-form-item">
                <div class="layui-inline col-3">
                    <label class="layui-form-label">企业法人&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="legalPerson" data-set="legalPerson" type="text" placeholder="请输入企业法人"  />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">负责人&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="generalManager" data-set="generalManager" type="text" placeholder="请输入负责人姓名" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">联系电话&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="tel" data-set="tel" maxlength="20" type="text" placeholder="请输入联系电话"  />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">手机&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="mobile" data-set="mobile" maxlength="11" type="text" placeholder="请输入手机号码" />
                    </div>
                </div>
                <div class="layui-inline col-3">
                    <label class="layui-form-label">邮箱&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="email" data-set="email" type="text" placeholder="请输入邮箱"/>
                    </div>
                </div>
            </div>
             <div class="layui-form-item">
                    <label class="layui-form-label">产品介绍&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入内容" class="layui-textarea" name="productDesc" data-set="productDesc"></textarea>
                    </div>
            </div>
            <div class="layui-form-item">
                    <label class="layui-form-label">备注&nbsp;<i class="layui-icon arrow"></i></label>
                    <div class="layui-input-block">
                       <textarea placeholder="请输入内容" class="layui-textarea" name="remark" data-set="remark"></textarea>
                    </div>
            </div>
              <div class="layui-form-item">
                <div class="layui-inline col-2">
                    <label class="layui-form-label upload-img-label">营业执照&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline upload-img-block">
                        <div class="layui-upload">
                          	<button type="button" class="layui-btn btn-upload" id="license" data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-plus"></i></button>
                          	 <div class="layui-upload-list">
                            	<input type="hidden"  name="licenseImgPath" value="">
	                        </div>
                        </div> 
                    </div>
                </div>
                <div class="layui-inline col-2">
                    <label class="layui-form-label upload-img-label">企业实景&nbsp;<i class="layui-icon arrow">　</i></label>
                    <div class="layui-input-inline upload-img-block">
	                    <div class="layui-upload">
	            			<button type="button" class="layui-btn btn-upload" id="enterpriseImg"  data-url="{:url('admin/api.upload/upload')}"><i class="fa fa-plus"></i></button>
	            			<div class="layui-upload-list">
	               		 	  	<input type="hidden"  name="imgPath" value="">
		               		</div>
	               		</div> 
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                    <div class="layui-input-block">
                         <button class="layui-btn btn-green" id="save" lay-submit lay-filter="save">保 存 </button>
                         <button class="layui-btn layui-btn-primary" type="reset">重 置</button>
                    </div>
            </div>
        </form>
    </div>  
    <script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/basic/enterprise.js"></script>

</body>
</html>           

